home *** CD-ROM | disk | FTP | other *** search
- (c) 1990 S.Hawtin.
-
- This directory contains a simple program to split a large file into many
- smaller ones, this allows you to edit large files then use join to stick
- them back together again.
-
- The command has the form
-
- split [-c<count>][-l<lump_size>][-p<pattern>] source [dest]
-
- the simplest for of the command is
-
- split foo
-
- this will split the file "foo" into a set of files "split.0", "split.1",
- "split.2" and so on, each file will contain 1000 characters from the file
- "foo". You can change the starting count with the "-c" flag and the size
- of the files with the "-l" flag, so the command
-
- split -c100 -l6789 foo
-
- will split the file into files "split.100", "split.101", "split.102" and so
- on each file containing 6789 charcters.
-
- The root output name is set bey the "dest" argument, so
-
- split foo file.
-
- will create the files "file.0", "file.1" and so on.
-
- The final, and most interesting bit of the program is the "-p" flag, this
- gives a pattern that is used instead of a charcter count, so
-
- split "-pJIM 7" foo
-
- will split the file each time it finds the string "JIM 7", placing the first
- such segment into "split.0", the second into "split.1" and so on.
-